package com.gupaoedu.task.pattern.singleton.test;

import com.gupaoedu.task.pattern.singleton.lazy.LazyDoubleCheckSingleton;
import com.gupaoedu.task.pattern.singleton.lazy.LazySimpleSingleton;

/**
 * @author djl
 * @Title: ExectorThread
 * @Description: TODO
 * @date 2019/3/29
 */
public class ExectorThread implements  Runnable {
    public void run() {
        /*LazySimpleSingleton singleton=LazySimpleSingleton.getInstance();*/
        LazyDoubleCheckSingleton singleton=LazyDoubleCheckSingleton.getInstance();
        System.out.println(Thread.currentThread().getName()+":"+singleton);
    }
}
